package com.googlecode.flealancemarket.tapestry.pages;

import com.googlecode.flealancemarket.tapestry.util.Session;
import org.apache.tapestry.annotations.ApplicationState;

public class Logout {

    @ApplicationState
    private Session session;

    Object onActivate(){
        session.setUserId(0);
        session.setUserIsEmployer(false);
        session.setUsername(null);
        session.setMessage("You have successfully logged out.");
        return Categories.class;
    }

}
